<?php

namespace App\Http\Controllers\Kms\App\App;

use App\Http\Controllers\BaseController;
use App\Service\Kms\App\ClientService;
use Illuminate\Http\JsonResponse;
use Illuminate\Validation\ValidationException;

class ClientController extends BaseController
{
    /**
     * @return JsonResponse
     * @throws ValidationException
     */
    public function list(): JsonResponse
    {
        return $this->success(ClientService::list());
    }

    /**
     * @return JsonResponse
     * @throws ValidationException
     */
    public function myList(): JsonResponse
    {
        return $this->success(ClientService::myList());
    }
}
